package com.ruoyi.ZdElectricityUsage.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.ZdElectricityUsage.mapper.ZdElectricityUsageMapper;
import com.ruoyi.ZdElectricityUsage.domain.ZdElectricityUsage;
import com.ruoyi.ZdElectricityUsage.service.IZdElectricityUsageService;

/**
 * 用电信息Service业务层处理
 * 
 * @author 智电未来
 * @date 2024-07-09
 */
@Service
public class ZdElectricityUsageServiceImpl implements IZdElectricityUsageService 
{
    @Autowired
    private ZdElectricityUsageMapper zdElectricityUsageMapper;

    /**
     * 查询用电信息
     * 
     * @param orderNumber 用电信息主键
     * @return 用电信息
     */
    @Override
    public ZdElectricityUsage selectZdElectricityUsageByOrderNumber(Long orderNumber)
    {
        return zdElectricityUsageMapper.selectZdElectricityUsageByOrderNumber(orderNumber);
    }

    /**
     * 查询用电信息列表
     * 
     * @param zdElectricityUsage 用电信息
     * @return 用电信息
     */
    @Override
    public List<ZdElectricityUsage> selectZdElectricityUsageList(ZdElectricityUsage zdElectricityUsage)
    {
        return zdElectricityUsageMapper.selectZdElectricityUsageList(zdElectricityUsage);
    }

    /**
     * 新增用电信息
     * 
     * @param zdElectricityUsage 用电信息
     * @return 结果
     */
    @Override
    public int insertZdElectricityUsage(ZdElectricityUsage zdElectricityUsage)
    {
        return zdElectricityUsageMapper.insertZdElectricityUsage(zdElectricityUsage);
    }

    /**
     * 修改用电信息
     * 
     * @param zdElectricityUsage 用电信息
     * @return 结果
     */
    @Override
    public int updateZdElectricityUsage(ZdElectricityUsage zdElectricityUsage)
    {
        return zdElectricityUsageMapper.updateZdElectricityUsage(zdElectricityUsage);
    }

    /**
     * 批量删除用电信息
     * 
     * @param orderNumbers 需要删除的用电信息主键
     * @return 结果
     */
    @Override
    public int deleteZdElectricityUsageByOrderNumbers(Long[] orderNumbers)
    {
        return zdElectricityUsageMapper.deleteZdElectricityUsageByOrderNumbers(orderNumbers);
    }

    /**
     * 删除用电信息信息
     * 
     * @param orderNumber 用电信息主键
     * @return 结果
     */
    @Override
    public int deleteZdElectricityUsageByOrderNumber(Long orderNumber)
    {
        return zdElectricityUsageMapper.deleteZdElectricityUsageByOrderNumber(orderNumber);
    }
}
